package hc.bre.clas.yesno

import hc.bre.clas.ClasBuilder

@groovy.transform.CompileStatic
class YesNoBuilder extends ClasBuilder<YesNoDefinition>{
	@Override
	public String rangeVariable() {
		apdNl("def _rangeVariable_ = {");
		nested{
			apdNlBlock(ruleDef.script);
		};
		apdNl("}.call() ? true : false;");
		
		return "_rangeVariable_";
	}

}
